﻿<%@page import="com.mmy.domain.restaurant.TRestaurantBase"%>
<%@page import="com.mmy.domain.restaurant.VRestaurantBase"%>
<%@page import="com.mmy.domain.scenic.TScenicBase"%>
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>餐馆信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1>餐馆管理</h1>
							</div>	
							
						 </div >
					</div>
	</header>
	<section class="container">
	

			<nav class="breadcrumb" >
				<a href="restaurantindex" >餐馆信息</a> | 
				<a href="restaurantplan" >餐馆计划</a>  
				<hr class="breadcrumb-hr" color=#F9F6E5 SIZE=3></hr>
				</nav>
					<!--餐馆基本信息展示 -->
				<div class="information" >
					
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i><label>餐馆信息管理</label>
						</h4>
						<div class="input-container">
						
							<div class="select-condition">
							<form action="searchrestaurant" class="info-form" >
							<span> <label for="RestaurantName">餐馆名称：</label></span>
							<input type="text" class="input-width" id="RestaurantName" name="RestaurantName" value="${requestScope.strRestaurantName}"/>
							 <span><label for="RestaurantZoneID">所属区域：</label></span>			
								<select class="select-height" id="RestaurantZoneID" name="ZoneProvinceID">
					<option value="">不限</option>
					<c:forEach var="tConstZoneProvince" items="${newTConstZoneProvince}">
						<option value="${tConstZoneProvince.getZoneID()}">${tConstZoneProvince.getZoneName()}</option>
						</c:forEach>
						</select>
					
					<select class="select-height"  name="ZoneCityID" >
					<option value="">不限</option>
					<c:forEach var="tConstZone" items="${newTConstZone}">
						<option value="${tConstZone.getZoneID()}">${tConstZone.getZoneName()}</option>
						</c:forEach>
						</select> 
						<select class="select-height"  name="ZoneID" >
					<option value="">不限</option>
					<c:forEach var="tConstZoneDistrict" items="${newTConstZoneDistrict}">
						<option value="${tConstZoneDistrict.getZoneID()}">${tConstZoneDistrict.getZoneName()}</option>
						</c:forEach>
						</select>
							<br>
							<span><label for="RestaurantRate">餐馆星级：</label></span>
							<input type="text" class="input-width" id="RestaurantRate" name="Rate" value="${requestScope.strRate}"/>
							<span><label for="RestaurantScenic">周边景点：</label></span>
							<select class="select-height" id="RestaurantScenic" name="ScenicID">
								<option value="">不限</option>
								<c:forEach var="tscenicBaselist" items="${scenicBaselist}">
						<option value="${tscenicBaselist.getScenicID()}">${tscenicBaselist.getScenicName()}</option>
						</c:forEach>
							</select> 
							<input type="submit" value="搜索" class="btn"/>
							
							<div class="at-float-right">
							<input type="button" class="btn " value="新建"  onclick="location.href='/mmy/tocreaterestaurantbase'" />
							<input type="button" class="btn " value="修改"  onclick="updateRestaurantbase()"/>
							<input type="button" class="btn"  value="删除" onclick="delRestaurantbaseBatch()"/>
							<input type="button" class="btn"  value="预留" onclick="createRestaurantReserve()"/>
							</div>
							</form>
						</div>
						<table class="info-table">
							<tr>
								<th>
									<label><input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">全选</label>
								</th>
								<th><label>餐馆编码</label></th> 
								<th><label>餐馆名称</label></th>
								<th><label>所属区域</label></th>
								<th><label>餐馆星级</label></th>
								<th><label>周边景点</label></th>
								<th><label>联系人</label></th> 
								<th><label>联系人电话</label></th> 
								<th><label>地址</label></th> 	
							</tr>
							<!-- 循环显示每个用户的信息 用jstl-->
      					  <c:forEach items="${restaurantbaselist}" var="vRestaurantBaseList" varStatus="status">
           				 	<tr >
            			   		<td ><input type="checkbox" name="ckone" value="${vRestaurantBaseList.getRestaurantID()}" onclick="ckOne(this)" /></td> 
			                	<td ><label>${vRestaurantBaseList.getRestaurantID()}</label></td>
				                <td ><a href="restaurantbaseinfo?iRestaurantID=${vRestaurantBaseList.getRestaurantID()}"><label>${vRestaurantBaseList.getRestaurantName()}</label></a></td>
				                <td ><label>${vRestaurantBaseList.getZoneName()}</label></td>
				              	<td ><label>${vRestaurantBaseList.getRate()}</label></td>
						<td ><label>${vRestaurantBaseList.getScenicName()}</label></td>
				              	<td ><label>${vRestaurantBaseList.getContact()}</label></td>
<td ><label>${vRestaurantBaseList.getTel()}</label></td>
				              	<td ><label>${vRestaurantBaseList.getAddress()}</label></td>
				            </tr>
	      				  </c:forEach>
						</table>
						<select>
							<option>10</option>
							<option>5</option>
							<option>2</option>
						</select>
						<span> 条   共1条 1/1</span>
						<span class="page-span">
							1 转到<input type="text" class="input-width3"/>
							页 <input type="button" class="btn" value="GO"  />
						</span>	
						</div>	
					</div>
					
		</section>
				
					
					
			</article>
			
		</main>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>